projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c60bfa4
)
fix mem leak in gtk_drag_set_icon_surface, destroy pattern
author
ammonkey
<am.monkeyd@gmail.com>
Wed, 8 Aug 2012 17:07:17 +0000
(19:07 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 14 Apr 2013 00:06:43 +0000
(20:06 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=681446
gtk/gtkdnd.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdnd.c
b/gtk/gtkdnd.c
index 83655f0b4300336c53f4805a64d55f8ce144502d..3cf0e5c0959069621b43ef13c8c710c43ff4e7ee 100644
(file)
--- a/
gtk/gtkdnd.c
+++ b/
gtk/gtkdnd.c
@@
-3439,6
+3439,7
@@
gtk_drag_set_icon_surface (GdkDragContext *context,
}
gdk_window_set_background_pattern (gtk_widget_get_window (window), pattern);
+ cairo_pattern_destroy (pattern);
gtk_drag_set_icon_window (context, window, extents.x, extents.y, TRUE);
}